TextShape WordWrap
Gets or sets whether long words should be broken and wrapped onto the next line.
public bool WordWrap {get;Set} |
Return value
bool | TRUE if word wrap is enabled |
Example
Copy
TextShape textShape = new TextShape();
textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.DotDurationMicroseconds = 2;
textShape.HorizontalAlign = TextHorizontalAlign.Left;
textShape.VerticalAlign = TextVerticalAlign.Center;
textShape.WordWrap = true;
textShape.LineSpaceStyle = TextLineSpaceStyle.Factor;
textShape.LineSpace = 1f;
vectorImage.AddText(textShape);